Data processing apparatus and data processing method

ABSTRACT

A data processing apparatus processes input data and outputs the processed data. The data processing apparatus includes a data processing section for processing the input data by a predetermined processing method and outputting the processed data, an input-data evaluation section for evaluating the input data, an output-data evaluation section for evaluating the output data, and a real-time learning section for controlling such that the processing method is learned in real time according to the evaluation results obtained by the input-data evaluation section and the output-data evaluation section and the data processing section processes the input data according to the learned processing method, and thereby, improves the output data every moment.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates to data processing apparatuses and data processing methods, and more particularly, to a data processing apparatus and a data processing method which allow noise included in data to be removed more effectively.

[0003] 2. Description of the Related Art

[0004] In general, data such as transmitted or reproduced image data and sound data includes noise which changes as time elapses. To remove the noise included in the data, there have been known methods in which the average, namely, the whole average, of the whole input data is obtained and in which the average of a part of the input data, which is called a moving average, is obtained.

[0005] The method in which the whole average is calculated is effective when the degree of noise included in data, namely, the signal-to-noise ratio (SIN ratio) of the data, is uniform. When the S/N ratio of data varies, however, a portion of the data having a low S/N ratio affects a portion of the data having a high S/N ratio to make it difficult to remove the noise effectively in some cases.

[0006] In the method in which the moving average is calculated, since the average of data positioned close to the current input data in the time domain is obtained, the processing result is affected by a change in the S/N ratio of the data. In other words, the processing result has a high S/N ratio for a portion of the data having a high S/N ratio, but the processing result has a low S/N ratio for a portion of the data having a low S/N ratio.

SUMMARY OF THE INVENTION

[0007] Accordingly, it is an object of the present invention to solve the foregoing drawbacks.

[0008] The foregoing object is achieved in one aspect of the present invention through the provision of a data processing apparatus for processing input data and outputting the processed data, including: a data processing section for processing the input data by a predetermined processing method and outputting the processed data; an input-data evaluation section for evaluating the input data; an output-data evaluation section for evaluating the output data, and a real-time learning section for controlling such that the processing method is learned in real time according to the evaluation results obtained by the input-data evaluation section and the output-data evaluation section and the data processing section processes the input data according to the learned processing method.

[0009] The foregoing object is achieved in another aspect of the present invention through the provision of a data processing method for processing input data and outputting the processed data, including: a data processing step for processing the input data by a predetermined processing method and outputting the processed data; an input-data evaluation step for evaluating the input data; an output-data evaluation step for evaluating the output data, and a real-time learning step for controlling such that the processing method is learned in real time according to the evaluation results obtained in the input-data evaluation step and the output-data evaluation step and the input data is processed in the data processing step by the learned processing method.

BRIEF DESCRIPTION OF THE DRAWINGS

[0010]FIG. 1 is a block diagram of a self-tuning processing circuit according to an embodiment of the present invention.

[0011]FIG. 2A is a flowchart of a processing method used before an algorithm is changed.

[0012]FIG. 2B is a flowchart of a processing method used after the algorithm is changed.

[0013]FIG. 3A is a flowchart of a processing method used before processing elements are changed.

[0014]FIG. 3B is a flowchart of a processing method used after the processing elements are changed.

[0015]FIG. 4 is a view showing input learning data used for learning.

[0016]FIG. 5 is a block diagram showing an example structure of a noise reduction (NR) processing circuit according to the present invention.

[0017]FIG. 6A is a view showing the input data to be processed by the NR processing circuit shown in FIG. 5.

[0018]FIG. 6B is a view showing the reliability of the input data to be processed by the NR processing circuit shown in FIG. 5.

[0019]FIG. 7 is a block diagram showing an example structure of the NR processing circuit shown in FIG. 5.

[0020]FIG. 8 is a block diagram showing an example structure of an input reliability calculation section 12 shown in FIG. 7.

[0021]FIG. 9 is a view showing the processing of the input reliability calculation section 12 shown in FIG. 8.

[0022]FIG. 10 is a block diagram showing an example structure of an output reliability calculation section 13 shown in FIG. 7.

[0023]FIG. 11A is a view showing the processing of input data in the NR processing circuit shown in FIG. 7.

[0024]FIG. 11B is a view showing the processing of output data in the NR processing circuit shown in FIG. 7.

[0025]FIG. 12 is a flowchart showing the processing of the NR processing circuit shown in FIG. 7.

[0026]FIG. 13 is a view showing an input-reliability calculation method.

[0027]FIG. 14 is a view showing a simulation result of the NR processing circuit shown in FIG. 7.

[0028]FIG. 15A is a view showing a computer into which a program for executing processing related to the present invention is installed.

[0029]FIG. 15B is a view showing example storage media for storing the program which executes the processing related to the present invention.

[0030]FIG. 15C is a view showing cases in which the program for executing the processing related to the present invention is distributed to the computer through a satellite and a network.

[0031]FIG. 16 is a block diagram of a computer into which the program for executing the processing related to the present invention is installed.

DESCRIPTION OF THE PREFERRED EMBODIMENT

[0032] An embodiment of the present invention will be described below by referring to the drawings.

[0033]FIG. 1 shows an example structure of a self-tuning processing circuit according to an embodiment of the present invention.

[0034] In this self-tuning processing circuit, an input signal (for example, digital data) to be processed is processed by the most appropriate processing method, and the result of the processing is output as an output signal.

[0035] The self-tuning processing circuit is formed of a real-time learning section 1 and a signal processing section 2.

[0036] The real-time learning section 1 receives a learning input signal used for learning the processing method by which the input signal to be processed is processed. The real-time learning section 1 controls the signal processing section 2 such that the processing method is learned in real time-according to the learning input signal and the processing method obtained as the result of the learning is used for processing, in order to adaptively process the input signal to be processed so that the output signal is improved as time elapses.

[0037] The signal processing section 2 adaptively processes the input signal to be processed by the processing method specified by the real-time learning section 1, and outputs the result of the processing as an output signal.

[0038] Therefore, since the signal processing section 2 processes the input signal to be processed by the use of the processing method learned in real time as described above, the input signal to be processed is adaptively processed and thereby the output signal, which is obtained by adaptively processing the input signal to be processed, is improved as time elapses.

[0039] More specifically, the processing method by which the signal processing section 2 processes the input signal to be processed is improved by real-time learning in the real-time learning section 1. The signal processing section 2 adaptively processes the input signal to be processed by the use of the processing method specified by the real-time learning section 1. As time elapses or as the amount of input signal processed increases, a so-called learning effect gradually appears, and the output signal output from the signal processing section 2 is improved as time elapses. The improvement of the output signal means that the processing method of the signal processing section 2 is improved as time elapses.

[0040] As described above, in the self-tuning processing circuit, the processing method for the input signal to be processed is learned in real time and the processing is executed by the processing method obtained as the result of the learning such that the output signal is improved as time elapses. In other words, as the learning proceeds, the processing appropriate for the input signal to be processed is applied to itself. Therefore, the processing which the self-tuning processing circuit shown in FIG. 1 performs can be called self-tuning processing.

[0041] An improvement of the output signal means, for example, an image-quality improvement when the input signal to be processed is an image. More specifically, it means an improvement of the S/N ratio or resolution. When the purpose of the processing in the signal processing section 2 is applying an effect, such as smoothing or edge emphasis, the improvement of the output signal means that the effect greatly appears. Therefore, the improvement of the output signal means that the output signal is changed to that having a state which the user desires.

[0042] The real-time learning section 1 learns in real time the processing method used for processing the input signal to be processed, according to the input learning signal input to the section. As shown by dotted lines in FIG. 1, the input learning signal can be the input signal to be processed, input to the signal processing section 2, the output signal output from the signal processing section 2, or further, an auxiliary input signal sent to the selftuning processing circuit to perform learning of the processing method applied to the input signal to be processed. Two or more of the above signals may be used as input learning signals.

[0043] In the self-tuning processing circuit, the processing method of the signal processing section 2 is improved every moment when the real-time learning section 1 learns in real time. Therefore, the self-tuning processing circuit is a so-called change-with-time system. The improvement of the processing method is achieved in two cases: a case in which the algorithm of the processing is changed and a case in which the contents of processing steps constituting the series of processing or those of elements constituting the processing are changed.

[0044] When “x” indicates the input signal to be processed and “y” indicates an output signal, for example, the processing in the signal processing section 2 is expressed by an expression of y=f(x) with the use of a function “f( )”.

[0045] When the expression is set to “f(x)=a₀x²+b₀x+c₀,” for example, the processing of the signal processing section 2 used before the algorithm is changed can be expressed by a flowchart shown in FIG. 2A.

[0046] In a step S1, a₀x² is calculated. In a step S2, b₀x is calculated. Then, in a step S3, a₀x²+b₀x+c₀ is calculated to obtain the output signal “y.”

[0047] In this case, changing the form of the function “f(x)” corresponds to changing the algorithm of the processing. More specifically, changing the function from “f(x)=a₀x²+b₀x+c₀” to “f(x)=(a₀x²+b₀x+c₀)²,” for example, corresponds to changing the algorithm of the processing.

[0048] In this case, the processing of the signal processing section 2 used after the algorithm is changed can be expressed, for example, by a flowchart shown in FIG. 2B.

[0049] Specifically, in steps S1 to S3, the same processing as that shown in FIG. 2A is executed, and (a₀x²+b₀x+c₀)² is calculated to obtain the output signal “y.”

[0050] As clearly understood from the comparison between the flowchart shown in FIG. 2A and that shown in FIG. 2B, when the algorithm of the processing is changed, the flowchart which expresses the processing is also changed accordingly.

[0051] Changing a coefficient of the function “f(x)” corresponds to changing the contents of an element constituting the processing. Specifically, for example, changing the function from “f(x)=a₀x²+b₀x+c₀” to “f(x)=a₁x²+b₁x+c₁” corresponds to changing the contents of the elements constituting the processing.

[0052] In this case, the processing of the signal processing section 2 is changed from the processing shown by a flowchart in FIG. 3A, which is the same as that shown in FIG. 2A, to, for example, the processing shown by a flowchart in FIG. 3B.

[0053] Specifically, in this case, a₁x² is calculated in a step S1, b₁x is calculated in a step S2, and then, a₁x²+b₁x+c₁ is calculated in a step S3 to obtain the output signal “y.”

[0054] As clearly understood from the comparison between the flowchart shown in FIG. 3A and that shown in FIG. 3B, when the coefficients of the function “f(x)” are changed, the contents of steps constituting the processing are changed accordingly. Specifically, in FIGS. 3A and 3B, the contents of the step S1 is changed from the calculation of a₀x² to that of a₁x², the contents of the step S2 is changed from the calculation of b₀x to that of b₁x, the contents of the step S3 is changed from a₀x²+b₀x+c₀ to a₁x²+b₁x+c₁.

[0055] In some cases, the processing method is improved both by changing the algorithm of the processing and by changing the contents of an element constituting the processing.

[0056] The functions used in FIGS. 2A and 2B and FIGS. 3A and 3B are just examples used to describe an improvement of the processing method. Whether the output signal is actually improved is irrelevant to the fact that the function expressing the processing of the signal processing section 2 is changed as described above.

[0057] The self-tuning processing circuit differs, for example, from conventional digital filters in that the coefficients of the function f(x) are changed by real-time learning, namely, according to newly generated adaptive coefficients. Specifically, in the conventional digital filters, a tap coefficient may be changed according to input data to a coefficient prepared in advance, which is not generated by real-time learning. In other words, in the conventional digital filters, a tap coefficient which the system designer thinks is appropriate for input data is selected among tap coefficients prepared in advance. A tap coefficient adaptive to input data is not obtained. As a result, even if a tap coefficient more appropriate for the input data exists, it cannot be used unless it is prepared in advance. Therefore, the above conventional digital filters are called in some cases systems changing a tap coefficient “adaptively,” but accurately speaking, it is not “adaptively” but “selectively.” They are systems in which a tap coefficient adaptive to input data is not generated but a tap coefficient selected uniquely against the input data is used.

[0058] In contrast, in the self-tuning processing circuit, a tap coefficient is generated by real-time learning such that input data is adaptively processed. In other words, the input data is processed with the most appropriate tap coefficient. More specifically, for example, whereas in the conventional digital filters, for example, when two sets of tap coefficients are prepared in advance, one of the two sets of tap coefficients which the system designer thinks is appropriate for the input data is uniquely selected and used. Tap coefficients used for processing the input data are improved every moment by real-time learning to obtain tap coefficients more appropriate for the input data, and processing is executed with the use of such tap coefficients in the self-tuning processing circuit. Therefore, processing adaptive to the input data is executed.

[0059] In addition, the self-tuning processing circuit differs from conventional processing which applies adaptive processing to input data but output data is not improved every moment, such as adaptive dynamic range coding (ADRC) processing, in that output data is improved every moment. Specifically, in the ADRC processing, the maximum value MAX and the minimum value MIN of the pixel values of pixels constituting a block in an image are detected, and the pixel values of the pixels constituting the block are re-quantized in K bits according to a local dynamic range DR obtained by MAX—MIN in the block. More specifically, the minimum value MIN is subtracted from the value of each pixel in the block and the difference is divided by DR/2^(K) for requantization. Therefore, adaptive processing is applied to input data in that the quantization step DR/2^(K) of the pixel values is obtained according to the block dynamic range DR and the pixel values are quantized by the quantization step DR/2^(K), but output data obtained as the quantization results is not improved every moment.

[0060] The real-time learning section 1 uses all the sample values of input learning signals obtained so far in order to improve the output signal as time elapses in real-time learning at the current time “t.” The output signal of the signal processing section 2 may be more effectively improved if the real-time learning section 1 gives a weight to sample values of input learning signals obtained at positions close in a time manner to the current time “t” and sample values obtained at positions far from the current time are not used much. Therefore, the real-time learning section 1 can execute real-time learning such that the above-described weight is given to input learning signals, namely, the sample values of input learning signals obtained at positions in a time manner far from the current time “t” are ignored according to the rates corresponding to the degrees of the time differences. Alternatively, the real-time learning section 1 can use only input learning signals obtained within a predetermined time period from the current time “t.” Specifically, for example, as shown in FIG. 4, the real-time learning section 1 is configured such that only input learning signals within four samples from the current time “t” is used for real-time learning at the current time “t.” This can be implemented by applying a weight of zero to input learning signals away from the current time “t” by five or more sample periods.

[0061] In real-time learning at the current time “t,” the real-time learning section 1 can use only sample values within a predetermined range in magnitude from the sample value of the input learning signal obtained at the current time “t.” Specifically, for example, in FIG. 4, a sample value, such as the sample value of the input learning signal obtained at the time “t-2,” having a magnitude largely different from that of the sample value of the input learning signal obtained at the current time “t” may adversely affect learning. Therefore, it is possible not to use, namely, to give a weight of zero to, a sample value having a magnitude largely different from that of the input learning signal obtained at the current time “t” in realtime learning at the current time “t,” in the real-time learning section 1.

[0062]FIG. 5 shows an example structure of a noise reduction (NR) processing circuit 100 to which the self-tuning processing circuit shown in FIG. 1 is applied.

[0063] In this NR processing circuit 100, when data having noise is input to the NR processing circuit 100, self-tuning processing is applied to the input data and data obtained by effectively removing the noise from the input data is output.

[0064] Specifically, for example, to simplify a description, a case is examined in which input data having a constant true value and on which noise fluctuating in time is superposed, as shown in FIG. 6A, is averaged to remove the noise fluctuating in time. The noise is effectively removed by setting a weight for input data having a large noise level, namely, having a low S/N ratio, to a small value and by setting a weight for input data having a small noise level, namely, having a high S/N ratio, to a large value.

[0065] In the NR processing circuit 100, as the evaluation value of input data, the degree of reliability indicating how the input data is close to the true value, which is the reliability of the input data against the true value, for example, shown in FIG. 6B, is obtained by real-time learning. The NR processing circuit 100 calculates its average while the weight corresponding to the reliability is applied to the input data, to effectively remove the noise.

[0066] Therefore, the NR processing circuit 100 obtains a weighted average of the input data by the use of the weight corresponding to its reliability and outputs it as output data. The output data y(t) is obtained from the following expression, where x(t), y(t), and α_(x(t)) indicate the input data, the output data, and the reliability of the input data at the time “t” in the NR processing circuit 100, respectively. $\begin{matrix} {{y(t)} = \frac{\sum\limits_{i = 0}^{t}{\alpha_{x{(i)}}{x(i)}}}{\sum\limits_{i = 0}^{t}\alpha_{x{(i)}}}} & (1) \end{matrix}$

[0067] It is assumed here that a larger weight is given to the higher degree of reliability α_(x(t)) of input data.

[0068] The output data “y(t−1),” obtained one sample before the current time “t,” is calculated as follows from the expression (1) $\begin{matrix} {{y\left( {t - 1} \right)} = \frac{\sum\limits_{i = 0}^{t - 1}{\alpha_{x{(i)}}{x(i)}}}{\sum\limits_{i = 0}^{t - 1}\alpha_{x{(i)}}}} & (2) \end{matrix}$

[0069] As for the output data y(t), the degree of reliability α_(y(t)) indicating how the output data y(t) is close to the true value, which is the reliability of the output data y(t) against the true value, is introduced as an evaluation value of the output data y(t). The reliability α_(y(t−1)) of the output data y(t−1), obtained one sample before the current time “t,” is defined by the following expression. $\begin{matrix} {\alpha_{y{({t - 1})}} = {\sum\limits_{i = 0}^{t - 1}\alpha_{x{(i)}}}} & (3) \end{matrix}$

[0070] In this case, the output data “y(t)” and its reliability α_(y(t)) are expressed as follows with the use of the expressions (1) to (3). $\begin{matrix} \begin{matrix} {{y(t)} = \frac{\overset{\overset{\alpha_{y{({t - 1})}}{y{({t - 1})}}}{}}{\sum\limits_{i = 0}^{t - 1}{\alpha_{x{(i)}}{x(i)}}} + {\alpha_{x{(t)}}{x(t)}}}{\underset{\underset{\alpha_{y{({t - 1})}}}{}}{\sum\limits_{i = 0}^{t - 1}\alpha_{x{(i)}}} + \alpha_{x{(t)}}}} \\ {= \frac{{\alpha_{y{({t - 1})}}{y\left( {t - 1} \right)}} + {\alpha_{x{(t)}}{x(t)}}}{\alpha_{y{({t - 1})}} + \alpha_{x{(t)}}}} \\ {\alpha_{y{(t)}} = {\alpha_{y{({t - 1})}} + \alpha_{x{(t)}}}} \end{matrix} & (4) \end{matrix}$

[0071] The weight used to obtain the output data y(t) at the time “t” is indicated by w(t), and defined by the following expression.

w(t)=α_(y(t−1))/(α_(y(t−1))+α_(x(t))  (5)

[0072] From the expression (5), the following expression is satisfied.

1−w(t)=α_(x(t))/(α_(y(t−1))α_(x(t)))  (6)

[0073] With the use of the expressions (5) and (6), the output data y(t) in the expression (4) can be expressed in the following way by a weighted average obtained by multiplications and an addition.

y(t)=w(t)y(t−1)+(1−w(t))x(t)  (7)

[0074] The weights w(t) and 1−w(t) used in the expression (7) can be obtained from the expression (5) with the use of the reliability α_(y(t−1)) of the output data y(t−1) obtained one sample before and the reliability α_(x(t)) of the current input data x(t). The reliability α_(y(t)) of the current output data y(t) in the expression (4) can also be obtained with the use of the reliability α_(y(t−1)) of the output data y(t−1) obtained one sample before and the reliability α_(x(t)) of the current input data x(t).

[0075] When the reliability α_(x(t)) of the input data x(t) and the reliability α_(y(t)) of the output data y(t) are expressed, respectively, by the reciprocals of the corresponding dispersions σ_(x(t)) ² or σ_(y(t)) ², in other words, when the reliability α_(x(t)) and the reliability α_(y(t)) are set as follows,

α_(x(t))=1/σ_(x(t)) ²

α_(y(t))=1/σ_(y(t)) ²  (8)

[0076] the weight w(t) in the expression (7) can be obtained by the following expression.

w(t)=σ_(x(t)) ²/(σ_(y(t−1)) ²+σ_(x(t)) ²)  (9)

[0077] In this case, 1−w(t) in the expression (7) can be obtained by the following expression.

1−w(t)=σ_(y(t−1)) ²/(σ_(y(t−1)) ²+σ_(x(t)) ²)  (10)

[0078] A term, σ_(y(t)) ², can be obtained by the following expression.

σ_(y(t)) ₂ =w(t)²σ_(y(t−1)) ²+(1−w(t))²σ_(x(t)) ²  (11)

[0079] The NR processing circuit 100 shown in FIG. 5 learns in real time the weight w(t) according to the expression (5) and 1−w(t) according to the expression (6), with the input data x(t) and the output data y(t) being used as input learning signals. The NR processing circuit calculates the weighted average of the output data y(t−1) obtained one sample before and the current input data x(t) according to the expression (7) with the use of the weight w(t) obtained as a result of the real-time learning to adaptively process the input data x(t) so that the noise included in the input data x(t) is effectively removed. In other words, the S/N ratio of the output data y(t) output from the NR processing circuit 100 is improved as time elapses.

[0080]FIG. 7 shows an example structure of such an NR processing circuit 100.

[0081] A latch circuit 11 ₁, receives data. The latch circuit 11 ₁ latches the input data, for example, in synchronization with the timing when the input data is received, and sends it to a subsequent-stage latch circuit 11 ₂ and to an input reliability calculation section 12. The latch circuit 11 ₂ and a latch circuit 113 latch the data output from the previous-stage latch circuits 11 ₁, and 11 ₂, and send it to the subsequent-stage latch circuits 11 ₃ and 11 ₄ respectively, and to the input reliability calculation section 12, in the same way as the latch circuit 11 ₁. The latch circuit 11 ₄ latches the data output from the previous-stage latch circuit 11 ₃ and sends it to the input reliability calculation section 12.

[0082] The input reliability calculation section 12 receives the same input data as that sent to the latch circuit 11 ₁, in addition to the input data latched by the latch circuits 11 ₁ to 11 ₄. Therefore, when input data x(t) is sent to the latch circuit 11 ₁ and to the input reliability calculation section 12, the input reliability calculation section 12 also receives input data x(t−1) to x(t−4) latched by the latch circuits 11 ₁ to 11 ₄ The input reliability calculation circuit 12 calculates, for example, the dispersion of input data from the input data x(t) to x(t−4), and sends the reciprocal of the dispersion as the reliability α_(x(t)), namely, the input reliability, of the input data x(t) to an output reliability calculation section 13 and to a weight calculation section 15.

[0083] The output reliability calculation section 13 obtains the reliability α_(y(t)), namely, the output reliability of the output data y(t) according to the expression (4) with the use of the input reliability α_(x(t)) sent from the input reliability calculation section 12 and the output of a latch circuit 14, and outputs it to the latch circuit 14.

[0084] The latch circuit 14 latches the output reliability α_(y(t)) sent from the output reliability calculation section 13, for example, in synchronization with latching of the input data x(t), and sends it to the output reliability calculation section 13 and the weight calculation section 15. Therefore, the latch circuit 14 sends the output reliability α_(y(t−1)) obtained one sample before, to the output reliability calculation section 13 and the weight calculation section 15.

[0085] The weight calculation section 15 obtains a weight w(t) according to the expression (5) with the use of the input reliability α_(x(t)) sent from the input reliability calculation section 12 and the output reliability α_(y(t−1)) sent from the latch circuit 14, and sends it to a weighting section 21 and an operation section 22.

[0086] The latch circuits 11 ₁ to 11 ₄ the input reliability calculation section 12, the output reliability calculation section 13, the latch circuit 14, and the weight calculation section 15, described above, correspond to the real-time learning section shown in FIG. 1.

[0087] The weighting section 21 multiplies the weight w(t) sent from the weight calculation section 15 by the output of a latch circuit 25, and sends the product to an operation section 24. The operation section 22 subtracts the weight w(t) sent from the weight calculation section 15, from one, and sends the subtraction result, 1−w(t), to a weighting section 23. The weighting section 23 receives the input data x(t) as well as the output of the operation section 22. The weighting section 23 multiplies the input data x(t) by the output of the operation section 22, and sends the product to the operation section 24. The operation section 24 adds the outputs of the weighting sections 21 and 23, outputs the sum as output data y(t), and sends it to the latch circuit 25. The latch circuit 25 latches the output data of the operation section 24, for example, in synchronization with latching of the input data x(t), and sends it to the weighting section 21.

[0088] The weighting section 21, the operation section 22, the weighting section 23, the operation section 24, and the latch circuit 25, described above, correspond to the signal processing section 2 shown in FIG. 1, and calculate the weighted average according to the expression (7) and outputs it as the output data y(t).

[0089]FIG. 8 shows an example structure of the input reliability calculation section 12 shown in FIG. 7.

[0090] As described above, the input reliability calculation section 12 receives the current input data x(t) and, in addition, the input data x(t−1) to x(t−4), up to four samples before the current one. The input reliability calculation section 12 obtains the dispersion of the five-sample input data x(t) to x(t−4) as shown in FIG. 9, and outputs the reciprocal of the dispersion as the input reliability α_(x(t)).

[0091] Specifically, the input data x(t) to x(t−4) is sent to an average calculation circuit 31 and to a dispersion calculation circuit 32. The average calculation circuit 31 calculates the average m(t) of the five-sample input data x(t) to x(t−4) according to the following expression and sends the result to the dispersion calculation circuit 32. $\begin{matrix} {{m(t)} = \frac{\sum\limits_{n = 0}^{N - 1}{x\left( {t - n} \right)}}{N}} & (12) \end{matrix}$

[0092] In the embodiment shown in FIG. 8, N equals 5 in the expression (12).

[0093] The dispersion calculation circuit 32 uses the input data x(t) to x(t−4) input thereto and the average m(t) sent from the average calculation circuit 31 to calculate the dispersion σ_(x(t)) ² according to an expression (13) and sends it to a reciprocal calculation circuit 33. $\begin{matrix} {\sigma_{x{(t)}}^{2} = \frac{\sum\limits_{n = 0}^{N - 1}\left( {{x\left( {t - n} \right)} - {m(t)}} \right)^{2}}{N}} & (13) \end{matrix}$

[0094] In the same way as in the expression (12), N also equals 5 in the expression (13) in the embodiment shown in FIG. 8.

[0095] The reciprocal calculation circuit 33 obtains the reciprocal of the dispersion σ_(x(t)) ² sent from the dispersion calculation circuit 32, and outputs it as the input reliability α_(x(t)). $\begin{matrix} {\alpha_{x{(t)}} = \frac{1}{\sigma_{x{(t)}}^{2}}} & (14) \end{matrix}$

[0096]FIG. 10 shows an example structure of the output reliability calculation section 13 shown in FIG. 7.

[0097] As shown in the figure, the output reliability calculation section 13 is formed of an operation section 41. The operation section 41 receives the current input reliability α_(x(t)) sent from the input reliability calculation section 12 and the output reliability α_(y(t−1)) obtained one sample before, sent from the latch circuit 14. The operation section 41 adds the input reliability α_(x(t)) and the output reliability α_(y(t−1)) according to the expression (4) and outputs the sum as the current output reliability α_(y(t)).

[0098] The operation of the NR processing circuit 100 shown in FIG. 7 will be described below by referring to FIGS. 11A and 11B and FIG. 12. The operation of the NR processing circuit 100 and the control of each functional block are implemented by a controller not shown. Alternatively, the whole NR processing algorithm may be implemented by software.

[0099] As shown in FIG. 11A, the NR processing circuit 100 uses five samples, the current input data x(t) and the input data x(t−1) to x(t−4) obtained up to four samples before the current one, to obtain the dispersion σ_(x(t)) ² thereof, and further obtains the reciprocal of the dispersion as input reliability α_(x(t)).

[0100] The weight w(t) as well as the reliability α_(y(t)) of the current output data is obtained as shown in FIG. 11B with the use of the input reliability α_(x(t)) and the output reliability α_(y(t−1)) obtained one sample before, and the weighted average of the input data x(t) and the output data y(t−1) obtained one sample before is calculated according to the weight w(t) to output the weighted average as the output data y(t). With the above processing, α_(y(t)) and σ_(x(t)) ² are obtained in this order as shown in FIG. 11B.

[0101] More specifically, as shown in a flowchart of FIG. 12, the input data x(t) is input to the latch circuit 11 ₁, the input reliability calculation section 12, and the weighting section 23 in a step S11.

[0102] In the next step S12, the input reliability calculation section 12 obtains the input reliability α_(x(t)).

[0103] More specifically, the latch circuit 111 latches the received input data in synchronization with the timing when the input data is received, and sends it to the subsequentstage latch circuit 11 ₂ and to the input reliability calculation section 12. The latch circuit 11 ₂ and the latch circuit 11 ₃ latch the input data output from the previousstage latch circuits 11 ₁ and 11 ₂ and send the data to the subsequent-stage latch circuits 11 ₃ and 11 ₄ and to the input reliability calculation section 12, respectively, in the same way as the latch circuit 11 ₁. The latch circuit 11 ₄ latches the input data output from the previous-stage latch circuit 11 ₃ and sends it to the input reliability calculation section 12. Therefore, the input reliability calculation section 12 receives the input data x(t−1) to x(t−4) from the latch circuits 11 ₁ to 11 ₄ respectively, at the same time when it receives the input data x(t). The input reliability calculation section 12 uses the input data x(t) to x(t−4) to obtain the input reliability α_(x(t)) and sends it to the output reliability calculation section 13 and to the weight calculation section 15, as described above.

[0104] At the timing when the input reliability calculation section 12 sends the input reliability α_(x(t)) to the weight calculation section 15, the latch circuit 14 latches the output reliability α_(y(t−1)) output from the output reliability calculation section 13 one sample before. In a step S13, the weight calculation section 15 uses the input reliability α_(x(t)) sent from the input reliability calculation section 12 and the output reliability α_(y(t−1)) latched by the latch circuit 14 to obtain the weight w(t) according to the expression (5). This weight w(t) is sent to the weighting section 21 and the operation section 22.

[0105] The weighting section 21, the operation section 22, the weighting section 23, the operation section 24, and the latch circuit 25 use the weight w(t) output from the weight calculation section 15 to calculate the weighted average of the input data x(t) and the output data y(t−1) obtained one sample before, according to the expression (7).

[0106] Specifically, the weighting section 21 multiplies the output of the latch circuit 25 by the weight w(t) sent from the weight calculation section 15, and sends the product to the operation section 24. The latch circuit 25 latches the output data y(t−1) which the operation section 24 outputs the last time, at the timing when the weight calculation section 15 outputs the weight w(t). Therefore, the weighting section 21 obtains the product w(t)y(t−1) of the output data y(t−1) and the weight w(t) and sends it to the operation section 24.

[0107] The operation section 22 subtracts the weight w(t) sent from the weight calculation section 15, from one, and sends the subtraction value, 1−w(t), to the weighting section 23. The weighting section 23 multiplies the output, 1−w(t), of the operation section 22 by the input data x(t) and sends the multiplication result, (1−w(t))x(t), to the operation section 24.

[0108] The operation section 24 adds the output, w(t)y(t−1), of the weighting section 21 and the output, (1−w(t))x(t), of the weighting section 23. In other words, with the use of the weight w(t) output from the weight calculation section 15, the weighted average of the input data x(t) and the output data y(t−1) obtained one sample before is calculated according to the expression (7).

[0109] This weighted average is output as the output data y(t) in a step S15. The output data y(t) is sent to the latch circuit 25 and latched.

[0110] In the next step S16, the controller determines whether input data still exists. When it is determined in the step S16 that input data to be processed still exists, the procedure proceeds to a step S17 and the output reliability calculation section 13 updates the output reliability. Specifically, the output reliability calculation section 13 adds the input reliability α_(x(t)) calculated in the step S12 by the input reliability calculation section 12 and the output reliability α_(y(t−1)) obtained one sample before and latched by the latch circuit 14, according to the expression (4) to obtain the current output reliability α_(y(t)), and sends it to the latch circuit 14. Then, the procedure returns to the step S11, and the same processing is repeated with the next input data.

[0111] On the other hand, when the controller determines in the step S16 that input data to be processed does not exist, the processing is terminated.

[0112] As described above, the input reliability α_(x(t)) of the current input data x(t) and the output reliability α_(y(t−1)) obtained one sample before are added to calculate the weight w(t). Then, according to the weight w(t), the weighted average of the current input data x(t) and the output data y(t−1) obtained one sample before is calculated, and the average is output as the output data y(t) serving as the processing result of the input data x(t). The output reliability α_(y(t)) of the output data y(t) is then obtained by adding the current input reliability α_(x(t)) to the output reliability α_(y(t−1)) obtained one sample before. In the same way, input data x(t+1), x(t+2), . . . is sequentially processed. Therefore, the weight w(t) is learned such that portions having high noise levels are not much taken into account and portions having low noise levels are sufficiently taken into account in previous input data. In other words, the NR processing circuit 100 obtains a weight w(t) adaptive to input data, and as a result, improves the output data every moment as learning of the weight w(t) proceeds. The NR processing circuit 100 effectively removes noise from the input data and outputs data.

[0113] Since the NR processing circuit 100 uses the five-sample input data x(t) to x(t−4) to obtain the dispersion σ_(x(t)) ² in the embodiment shown in FIG. 7, the input reliability α_(x(t)), which is the reciprocal of the dispersion, cannot be obtained until the time required for obtaining five samples elapses from the start of the data input. Until the time required for obtaining five samples elapses, the NR processing circuit 100 may execute the processing, for example, in a way in which neither input reliability nor output reliability is calculated and the simple average of input data which has been input is obtained and output as output data. A processing method used immediately after the data input is started is not limited to this method.

[0114] In the above-described case, since the NR processing circuit 100 uses the reciprocal of the dispersion of input data as the input reliability α_(x(t)), the input reliability α_(x(t)) indicates the scatter of the input data within a predetermined time range. Therefore, when the degree of noise included in input data, for example, the S/N ratio of the input data, varies, the NR processing circuit 100 very effectively removes the noise.

[0115] When the reciprocal of the dispersion of the input data is used as the input reliability α_(x(t)) in the NR processing circuit 100, however, the effect of noise removal is slightly lowered for a local change of a noise level, namely, a change in a very narrow area, due to the nature of the dispersion.

[0116] The local change of a noise level can be effectively handled by using, for example, the reciprocal of the error square of the current input data against the average of input data, as the input reliability α_(x(t)).

[0117] In this case, the input reliability α_(x(t)) is calculated in the following way.

[0118] Specifically, for example, the NR processing circuit 100 calculates the average m(t) of five-sample input data x(t) to x(t−4) according to an expression (15) as shown in FIG. 13. $\begin{matrix} {{m(t)} = \frac{\sum\limits_{n = 0}^{N - 1}{x\left( {t - n} \right)}}{N}} & (15) \end{matrix}$

[0119] In an embodiment shown in FIG. 13, N equals 5 in the expression (15).

[0120] With the use of the input data x(t) and the average m(t), the NR processing circuit 100 calculates an error square d_(x(t)) ² of the input data x(t) against the average m(t) according to an expression (16).

d _(x(t)) ²=(x(t)−m(t))²  (16)

[0121] Then, the reciprocal of the error square d_(x(t)) ² is obtained according to the following expression to obtain the input reliability α_(x(t)). $\begin{matrix} {\alpha_{x{(t)}} = \frac{1}{d_{x{(t)}}^{2}}} & (17) \end{matrix}$

[0122] As described above, the method using the reciprocal of the error square as the input reliability α_(x(t)) is especially effective when the average m(t) is close to the true value.

[0123] In the above description, the input reliability α_(x(t)) is obtained based on either the dispersion σ_(x(t)) ² or the error square d_(x(t)) ². It can be also obtained based on both. Specifically, for example, the sum of the reciprocal of the dispersion σ_(x(t)) ² and the reciprocal of the error square d_(x(t)) ² can be used as an input reliability α_(x(t)).

[0124] Since the dispersion σ_(x(t)) ² indicates the degree of the local scatters of input data in a rather wide area and the error square d_(x(t)) ² indicates the degree of the local scatters of the data in a narrow area, when a combination of these factors is used as the input reliability α_(x(t)), even if the input data has a changing S/N ratio in a rather wide range and a local level of noise included in the input data also changes, the noise is effectively removed.

[0125]FIG. 14 shows a simulation result of self-tuning processing in which image input data is processed with its dispersion σ_(x(t)) ² being used as an input reliability α_(x(t)).

[0126] In FIG. 14, the horizontal axis and the vertical axis indicate a frame count or a frame number and an S/N ratio, respectively. The S/N ratios of input image data are indicated by ⋄ marks. The S/N ratios of output data obtained by the moving-average method are indicated by + marks, and the S/N ratios of output data obtained by a method according to the present invention are indicated by x marks. Five samples are used to calculate the moving average and the input reliability α_(x(t)).

[0127] As clearly understood from FIG. 14, the S/N ratio of the output data obtained by the moving-average method tracks the S/N ratio of the input image data. Therefore, when the S/N ratio of the image data increases, that of the output data also increases, and when the S/N ratio of the image data decreases, that of the output data also decreases. In contrast, the S/N ratio of the output data obtained by the method according to the present invention increases every moment due to the effect of learning of the weight w(t), and it is almost not subject to a change in the S/N ratio of the image data.

[0128] The present invention can also be applied to a case in which noise is removed, for example, from sound data, in addition to image data.

[0129] The above embodiment has been described in the viewpoint of noise reduction. Since the NR processing circuit 100 learns a processing method, the weight coefficient w(t) in this case, in real time and executes the processing by the processing method obtained as a result of the learning, such that input data is adaptively processed to improve output data as time elapses, the NR processing circuit 100 has a nature of self-tuning processing in which the input data itself is adaptively processed. In other words, the NR processing circuit can execute, for example, most-appropriate waveform shaping of input data.

[0130] In the present embodiment, the output data y(t−1) is multiplied by the weight w(t) and the input data x(t) is multiplied by the weight, 1−w(t), in the expression (7) to obtain the output data y(t) in the NR processing circuit 100. It is also possible that either the output data y(t−1) or the input data x(t) is multiplied by a weight to obtain an output data y(t).

[0131] The series of processing shown in FIG. 12 can be implemented by hardware or software. When the series of processing is achieved by software, a program constituting the software is installed into a computer which is built in the NR processing circuit 100 serving as special hardware or into a general-purpose computer.

[0132] Recording media which store the program for executing the series of processing described above will be described below by referring to FIGS. 15A, 15B, and 15C. The program is installed into a computer and is made executable by the computer.

[0133] The program is recorded in advance into a hard disk 102 or a semiconductor memory 103 serving as a recording medium which is built in a computer 101, as shown in FIG. 15A.

[0134] Alternatively, the program is recorded temporarily or perpetually into recording media, such as a floppy disk 111, a compact disc read-only memory (CD-ROM) 112, a magnetooptical (MO) disk 113, a digital versatile disk (DVD) 114, a magnetic disk 115, and a semiconductor memory 116, as shown in FIG. 15B.

[0135] The program is installed in the computer from the above-described recording medium. Alternatively, the program is transferred by radio from a downloading site 121 to the computer 101 through an artificial satellite for digital satellite broadcasting, or to the computer 101 by wire through a network 131 such as a local area network (LAN) or the Internet; and is installed into the hard disk 102, built in the computer 101, as shown in FIG. 15C.

[0136] In the present specification, the steps describing the programs for executing various types of processing are not necessarily processed in a time sequential manner in the order in which the steps are described in the flowcharts. Processing to be executed in parallel or individually, such as parallel processing or processing by objects, is also included.

[0137]FIG. 16 shows an example structure of the computer 101 shown in FIGS. 15A, 15B, and 15C.

[0138] The computer 101 includes a central processing unit (CPU) 142, as shown in FIG. 16. The CPU 142 is connected to an input and output interface 145 through a bus 141. When the user operates an input section 147 formed of a keyboard and a mouse to input a command through the input and output interface 145, the CPU 142 executes a program stored in a read-only memory (ROM) 143 corresponding to the semiconductor memory 103 shown in FIG. 15A. Alternatively, the CPU 142 loads into a random access memory (RAM) 144 a program stored in the hard disk 102; a program transferred through the satellite 122 or the network 131, received by a communication section 148, and installed into the hard disk 102; or a program read from the floppy disk 111, the CD-ROM 112, the MO disk 113, the DVD 114, or the magnetic disk 115 which is loaded into a drive 149, and installed into the hard disk 102; and executes it. The CPU 142 outputs the processing result, for example, through the input and output interface 145 to a display section 146 formed of a liquid-crystal display (LCD), as required. 

What is claimed is:
 1. A data processing apparatus for processing input data and outputting the processed data, comprising: data processing means for processing the input data by a predetermined processing method and outputting the processed data; input-data evaluation means for evaluating the input data; output-data evaluation means for evaluating the output data, and real-time learning means for controlling such that the processing method is learned in real time according to the evaluation results obtained by said input-data evaluation means and said output-data evaluation means and said data processing means processes the input data according to the learned processing method.
 2. A data processing apparatus according to claim 1, further comprising input-data storage means for storing a predetermined number of time-sequentially input data.
 3. A data processing apparatus according to claim 2, wherein said input-data evaluation means calculates the dispersion of the predetermined number of the input data stored by said input-data storage means and evaluates the current input data according to the dispersion.
 4. A data processing apparatus according to claim 2, wherein said input-data evaluation means calculates the average of the predetermined number of the input data stored by said input-data storage means, and evaluates the current input data according to the error of each data against the average.
 5. A data processing apparatus according to claim 2, wherein said input-data evaluation means calculates the dispersion and the average of the predetermined number of the input data stored by said input-data storage means; obtains the error of each input data against the average; and evaluates the current input data according to the dispersion and the error.
 6. A data processing apparatus according to claim 1, wherein said output-data evaluation means evaluates the current output data according to the sum of the evaluation of the input data and the evaluation of the output data.
 7. A data processing apparatus according to claim 1, further comprising output-data storage means for storing the output data, wherein said data processing means adds the previous output data stored by said output-data storage means and the current input data to obtain the output data corresponding to the current input data.
 8. A data processing apparatus according to claim 7, wherein said real-time learning means learns a predetermined weight coefficient according to the evaluation of the input data and the evaluation of the output data, and said data processing means obtains the output data corresponding to the current input data according to the weight coefficient.
 9. A data processing method for processing input data and outputting the processed data, comprising: a data processing step for processing the input data by a predetermined processing method and outputting the processed data; an input-data evaluation step for evaluating the input data; an output-data evaluation step for evaluating the output data, and a real-time learning step for controlling such that the processing method is learned in real time according to the evaluation results obtained in said input-data evaluation step and said output-data evaluation step and the input data is processed in said data processing step by the learned processing method.
 10. A data processing method according to claim 9, further comprising an input-data storage step for storing a predetermined number of time-sequentially input data.
 11. A data processing method according to claim 10, wherein, in said input-data evaluation step, the dispersion of the predetermined number of the input data stored in said input-data storage step is calculated and the current input data is evaluated according to the dispersion.
 12. A data processing method according to claim 10, wherein, in said input-data evaluation step, the average of the predetermined number of the input data stored in said input-data storage step is calculated, and the current input data is evaluated according to the error of each data against the average.
 13. A data processing method according to claim 10, wherein, in said input-data evaluation step, the dispersion and the average of the predetermined number of the input data stored in said input-data storage step are calculated; the error of each input data against the average is obtained; and the current input data is evaluated according to the dispersion and the error.
 14. A data processing method according to claim 9, wherein, in said output-data evaluation step, the current output-data is evaluated according to the sum of the evaluation of the input data and the evaluation of the output data.
 15. A data processing method according to claim 9, further comprising an output-data storage step for storing the output data, wherein, in said data processing step, the previous output data stored in said output-data storage step and the current input data are added to obtain the output data corresponding to the current input data.
 16. A data processing method according to claim 15, wherein a predetermined weight coefficient is learned according to the evaluation of the input data and the evaluation of the output data in said real-time learning step, and the output data corresponding to the current input data is obtained according to the weight coefficient in said data processing step.
 17. A storage medium storing a computer-controllable program for processing input data and outputting the processed data, the program comprising: a data processing step for processing the input data by a predetermined processing method and outputting the processed data; an input-data evaluation step for evaluating the input data; an output-data evaluation step for evaluating the output data, and a real-time learning step for controlling such that the processing method is learned in real time according to the evaluation results obtained in said input-data evaluation step and said output-data evaluation step and the input data is processed in said data processing step by the learned processing method. 